<script setup lang="ts">
import CategoryItem from '@/views/informations/components/categoryItem.vue'
import { useCategory } from '@/views/informations/hooks'
import { useI18n } from 'vue-i18n'

const { t } = useI18n()
const { documents, categories } = useCategory(t('zz频道短标识.新闻资讯'))
</script>

<template>
  <CategoryItem
    :tag="t('zz频道短标识.新闻资讯')"
    :column="3"
    :data="documents?.[0]"
    :more-path="{ path: `/informations/${t('zz频道短标识.新闻资讯')}` }"
  >
    <template #name>
      {{ categories.Data.Name }}
    </template>
  </CategoryItem>
</template>
